package com.itzzj.controller;

import com.itzzj.common.interceptor.RequestHolder;
import com.itzzj.common.response.Result;
import com.itzzj.common.response.ResultResponse;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "测试ThreadLocal接口")
@Slf4j
@RestController
@RequestMapping("/threadlocal")
public class ThreadLocalController {

    @GetMapping("/getThreadLocalData")
    public Result getThreadLocalData(){
        return ResultResponse.success(RequestHolder.get());
    }
}
